package main

import (
	"agent/channel"
	"fmt"
	"log"
	"os"
)

func main() {
	fmt.Println("Go Agent")
	fmt.Println(os.Args)

	os.Args = append(os.Args,"127.0.0.1", "debug")

	var agent channel.Agent
	agent.ServerNetLoc = os.Args[1]

	if len(os.Args) == 3 && os.Args[2] == "debug"{
		//开启debug模式
		log.Println("Debug Mode")
		agent.IsDebug = true
	}
	agent.Run()
}